package io.xxx.xbutler.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * 标签
 */
@Data
@Accessors(chain = true)
public class Tag implements Comparable<Tag> {

    @TableId
    private Long id;

    private String name;

    private String base64Name;

    /**
     * 联系人ID（包括机器人ID）
     */
    private String contactId;

    private String contactSerialNo;

    private LocalDateTime createdTime;

    private LocalDateTime updatedTime;

    @Override
    public int compareTo(Tag o) {
        return id.compareTo(o.id);
    }
}
